﻿Imports System.IO
Imports System.Xml.Serialization

<XmlRoot("Settings")> _
Public Class AppSettings

    Public Sub New()
        Me.CopyToPlayer = False
        Me.ExportPath = Path.Combine(My.Computer.FileSystem.SpecialDirectories.MyPictures, "Sansa Image Converter")
        Me.PlayerPath = "C:\"
        Me.Quality = Drawing2D.InterpolationMode.HighQualityBicubic
        Me.RotateImages = True
        Me.Sizing = 0
    End Sub

#Region " Properties "

    Private m_rotate As Boolean
    Private m_sizing As Integer
    Private m_quality As System.Drawing.Drawing2D.InterpolationMode
    Private m_copytoplayer As Boolean
    Private m_playerpath As String
    Private m_savepath As String

    Public Property RotateImages() As Boolean
        Get
            Return m_rotate
        End Get
        Set(ByVal value As Boolean)
            m_rotate = value
        End Set
    End Property

    Public Property Sizing() As Integer
        Get
            Return m_sizing
        End Get
        Set(ByVal value As Integer)
            m_sizing = value
        End Set
    End Property

    Public Property Quality() As System.Drawing.Drawing2D.InterpolationMode
        Get
            Return m_quality
        End Get
        Set(ByVal value As System.Drawing.Drawing2D.InterpolationMode)
            m_quality = value
        End Set
    End Property

    Public Property CopyToPlayer() As Boolean
        Get
            Return m_copytoplayer
        End Get
        Set(ByVal value As Boolean)
            m_copytoplayer = value
        End Set
    End Property

    Public Property PlayerPath() As String
        Get
            Return m_playerpath
        End Get
        Set(ByVal value As String)
            m_playerpath = value
        End Set
    End Property

    Public Property ExportPath() As String
        Get
            Return m_savepath
        End Get
        Set(ByVal value As String)
            m_savepath = value
        End Set
    End Property

#End Region

End Class
